<?php

namespace App\Http\Controllers;
use App\Models\Comment;
use App\Models\Article;
use Illuminate\Http\Request;


class CommentController extends Controller
{
    public function add(Request $request) {
    	$comment = new Comment();
    	$data = $request->only('content','u_id','a_id');
    	if($comment -> insert($data)) {
    		return true;
    	}else {
    		return false;
    	}
    }
}
